package com.cloud.auth.mapper;


import com.cloud.auth.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * @packageName: com.api.mapper.auth
 * @name: UserMapper
 * @description:
 * @author: 董定卓
 * @dateTime: 2019/6/12 17:27
 */
public interface UserMapper extends BaseMapper {

    /**
     * 用户登录
     *
     * @param map
     * @return
     */
    Map<String,Object> login(Map<String, Object> map);

    /**
     * 添加用户信息
     *
     * @param map
     * @return
     */
    int insertUser(Map<String, Object> map);

    /**
     * 更新用户信息
     *
     * @param map
     * @return
     */
    int updateUser(Map<String, Object> map);

    /**
     * 根据用户ID获取用户权限
     *
     * @param userId
     * @return
     */
    List<Map<String, Object>> listPermissionByUserId(String userId);
}
